package com.deelete.springcloud.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.deelete.springcloud.pojo.Account;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;

@Repository
@Mapper
public interface AccountMapper extends BaseMapper<Account> {
    //扣减余额
    int CutAccount(@Param("userId") Long userId,@Param("money") BigDecimal money);
}
